type github.com/gotd/td/internal/pool.poolConn
15 uses
github.com/gotd/td/internal/pool (current package)
pool.go#L33: free []*poolConn
pool.go#L70: func (c *DC) createConnection(id int64) *poolConn {
pool.go#L71: conn := &poolConn{
pool.go#L87: func (c *DC) dead(r *poolConn, deadErr error) {
pool.go#L126: func (c *DC) pop() (r *poolConn, ok bool) {
pool.go#L137: func (c *DC) release(r *poolConn) {
pool.go#L155: func (c *DC) acquire(ctx context.Context) (r *poolConn, err error) { // nolint:gocyclo
pool_conn.go#L24: type poolConn struct {
pool_conn.go#L32: func (p *poolConn) Dead() <-chan struct{} {
req_map.go#L12: m map[reqKey]chan *poolConn
req_map.go#L21: m: map[reqKey]chan *poolConn{},
req_map.go#L25: func (r *reqMap) request() (key reqKey, ch chan *poolConn) {
req_map.go#L27: ch = make(chan *poolConn, 1)
req_map.go#L35: func (r *reqMap) transfer(c *poolConn) bool {
req_map.go#L42: var ch chan *poolConn
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |